package GUI;

import java.awt.*;
import javax.swing.*;
/**
 * This class creates instance of ExaminationStageGui	
 * to display when needed
 * @author Nofar
 *
 */
public class ExaminationStageGui extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JComboBox Decision;
	private JButton canButton;
	private JButton SubButton;

	/**
	 * the constructor
	 */
	public ExaminationStageGui(){
		super();
		Decision = new JComboBox();
		Decision.setModel(new DefaultComboBoxModel(new String[] {"", "APPROVAL", "DENIED", "MORE DETAILS"}));
		SubButton = new JButton("submit");
		canButton = new JButton("cancel");
		initiate();
	}
	/**
	 * This method initializes ExaminationStageGui	
	 */
	public void initiate(){

		JLabel lblUserName = new JLabel("Choose Decision:");
		lblUserName.setFont(new Font("Arial", Font.BOLD, 13));
		lblUserName.setBounds(21, 120, 171, 50);
		add(lblUserName);
		
		JLabel lblLogInWindow = new JLabel("Examination Stage");
		lblLogInWindow.setForeground(Color.BLUE);
		lblLogInWindow.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblLogInWindow.setBounds(138, 35, 308, 50);
		add(lblLogInWindow);
		
		Decision.setBounds(187, 129, 142, 27);
		add(Decision);
		
		SubButton.setFont(new Font("Arial", Font.PLAIN, 12));
		SubButton.setBounds(284, 218, 122, 40);
		add(SubButton);
		
		
		canButton.setFont(new Font("Arial", Font.PLAIN, 12));
		canButton.setBounds(33, 218, 122, 40);
		add(canButton);
		
		setLayout(null);
		setSize(new Dimension(500, 300));	
	}
	/**
	 * 
	 * @return the submit button
	 */
	public JButton getSubButton(){
		return SubButton;
	}
	/**
	 * 
	 * @return the cancel button
	 */
	public JButton getcanButton(){
		return canButton;
	}
	/**
	 * 
	 * @return the chosen deccision 
	 */
	public JComboBox getDecision(){
		return Decision;
	}
}
